<template>
  <div>
    <div class="box">
      <van-image src="http://liufusong.top:8080/img/profile/bg.png" />
      <div class="user">
        <van-image
          class="user-head"
          round
          src="http://liufusong.top:8080/img/profile/avatar.png"
        />
        <p class="user-name">游客</p>
        <van-button type="primary" size="small">去登陆</van-button>
      </div>
    </div>
    <van-grid :column-num="3" :border="false" icon-size="20px">
      <van-grid-item icon="star-o" text="我的收藏" />
      <van-grid-item icon="home-o" text="我的出租" />
      <van-grid-item icon="underway-o" text="看房记录" />
      <van-grid-item icon="idcard" text="成为房主" />
      <van-grid-item icon="user-o" text="个人资料" />
      <van-grid-item icon="service-o" text="联系我们" />
    </van-grid>
    <div class="ad">
      <van-image
        width="92%"
        src="http://liufusong.top:8080/img/profile/join.png"
      />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  }
}
</script>

<style scoped lang="less">
.box {
  position: relative;
  min-height: 300px;
  width: 100%;
  z-index: 1;

  .user {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 85%;
    height: 55%;
    background-color: #fff;
    transform: translate(-50%);
    text-align: center;
    box-shadow: 0 0 10px 3px #ccc;

    .user-head {
      box-sizing: border-box;
      position: absolute;
      top: 0;
      left: 50%;
      width: 70px;
      height: 70px;
      border: 5px solid #f5f5f5;
      box-shadow: 0 2px 2px #bdbdbd;
      transform: translate(-50%, -50%);
    }

    .user-name {
      margin-top: 54px;
      font-size: 13px;
      margin-bottom: 20px;
    }

    .van-button--small {
      padding: 0 15px;
      border-radius: 5px;
    }
  }
}
.ad {
  text-align: center;
}
</style>
